package com.lww.springcloudapi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式编程
@ApiModel(value = "TabHallUserbillr对象", description = "账单实体")
public class TabHallUserbill implements Serializable {

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private int id; //id
    @ApiModelProperty(value = "扣费或者充值")
    @TableField("deduction")
    private Double deduction; //（扣费或者充值
    @ApiModelProperty(value = "办理时间")
    @TableField("operationtime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date operationtime;//操作时间
    @ApiModelProperty(value = "操作")
    @TableField("operation")
    private String operation; //操作
    @ApiModelProperty(value = "电话关联")
    @TableField("pnumber")
    private String pnumber; //（电话关联
}
